<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http:www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="./Home/Tpl/Admin/Common/cssjs.html" />
</head>
<body>
<style type="text/css">
.attachment-list{ width:480px}
.attachment-list .cu{dispaly:block;float:right; background:url(<?=$Config['siteurl']?>statics/images/admin_img/cross.png) no-repeat 0px 100%;width:20px; height:16px; overflow:hidden;}
.attachment-list li{ width:120px; padding:0 20px 10px; float:left}
</style>
<div class="pad-10">
<ul class="attachment-list">
    <volist name="thumbs" id="thumb">
    <li>
            <img src="{$thumb.thumb_url}" alt="{$thumb.width} X {$thumb.height}" width="120" />
            <span class="cu" title="删除" onclick="thumb_delete('<?php echo urlencode($thumb['thumb_filepath'])?>',this)"></span>
            <?php echo $thumb['width']?> X <?php echo $thumb['height']?>
    </li>
    </volist>
</ul>
</div>
<script type="text/javascript">
<!--
function thumb_delete(filepath, obj) {
    window.top.art.dialog({
        content: '确认删除？',
        icon: 'warning',
        fixed: true,
        style: 'confirm',
        id: 'att_delete',
        ok: function () {
            $.get('?a=pullic_delthumbs&m=Attachments&g=Attachment&filepath=' + filepath, function (data) {
                if(data == 1) $(obj).parent().fadeOut("slow");
            })
        },
        cancel: function () {

        }
    })
};
//-->
</script>
</body>
</html>